/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sgeb;

/**
 *
 * @author Joaquín
 */
public class VistaEntrenador extends javax.swing.JFrame {

    /**
     * Creates new form VistaEntrenador
     */
    public VistaEntrenador() {
        initComponents();
        this.setNombreEquipos();
        this.setJugadores();
        this.insertarPanel(this.PanelContenido);
        
    }

    private void setNombreEquipos(){
        nombres[0]="Lakers";
        nombres[1]="Heats";
        nombres[2]="Spurs";
        nombres[3]="CB Monachil";
        nombresRivales[0]="Barcelona";
        nombresRivales[1]="Madrid";
        nombresRivales[2]="Valencia";
        nombresRivales[3]="Granada";
    }
    
    private void setJugadores(){
    String[][] datos = {
                        {"kobe","Pau","Howard","Nash","Artest","Blake","Hill"},
                        {"50","40","20","20","4","2","1"},
                        {"4","15","20","20","4","2","1"},
                        {"6","40","20","17","4","2","1"},
                        {"17","40","20","20","4","2","1"},
                        {"4","40","20","20","4","2","1"},
                        {"50","40","20","5","4","2","1"},
                        {"50","40","20","20","4","2","1"},
                        {"50","4","20","20","4","2","1"},
                        {"50","40","20","20","4","2","1"},
                        {"50","15","15","20","4","2","11"},
                        {"0","40","20","17","4","2","1"},
                        };
    for(int i=0;i<12;i++){
        for(int j=0;j<7;j++){
            this.TablaEstadisticas.setValueAt(datos[i][j], j, i);
        }
    }
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        MisEquipos = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        MisEquiposLista = new javax.swing.JList(nombres);
        MisEquiposSiguiente = new javax.swing.JButton();
        EstadisticasMisJugadores = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        TablaEstadisticas = new javax.swing.JTable();
        jLabel8 = new javax.swing.JLabel();
        EstadisticasSiguiente = new javax.swing.JButton();
        EquiposRivales = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        EquiposRivalesLista = new javax.swing.JList(nombresRivales);
        EquiposRivalesSiguiente = new javax.swing.JButton();
        PartidoEntre = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        MiEquipo = new javax.swing.JTextField();
        EquipoRival = new javax.swing.JTextField();
        IniciarPartido = new javax.swing.JButton();
        Cancha = new javax.swing.JPanel();
        Suplente2 = new javax.swing.JButton();
        Suplente3 = new javax.swing.JButton();
        CanchaDatos = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        HistorialPartido = new javax.swing.JList();
        Finalizar = new javax.swing.JButton();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        RivalPuntos = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        MisPuntos = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        RivalUnPunto = new javax.swing.JButton();
        RivalDosPuntos = new javax.swing.JButton();
        RivalTresPuntos = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        Jugador1 = new javax.swing.JButton();
        Jugador4 = new javax.swing.JButton();
        Jugador2 = new javax.swing.JButton();
        Jugador5 = new javax.swing.JButton();
        Jugador3 = new javax.swing.JButton();
        AccionesJugador = new javax.swing.JLayeredPane();
        P1A = new javax.swing.JButton();
        P1F = new javax.swing.JButton();
        P2A = new javax.swing.JButton();
        RE = new javax.swing.JButton();
        P3A = new javax.swing.JButton();
        BP = new javax.swing.JButton();
        RO = new javax.swing.JButton();
        FH = new javax.swing.JButton();
        P3F = new javax.swing.JButton();
        TR = new javax.swing.JButton();
        P2F = new javax.swing.JButton();
        TH = new javax.swing.JButton();
        AS = new javax.swing.JButton();
        FR = new javax.swing.JButton();
        Campo = new javax.swing.JLayeredPane();
        jLabel12 = new javax.swing.JLabel();
        PanelCabecera = new javax.swing.JPanel();
        etiquetaTitulo = new javax.swing.JLabel();
        PanelContenido = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        dniEntrenador = new javax.swing.JTextField();
        IniciarSesion = new javax.swing.JButton();

        MisEquipos.setPreferredSize(new java.awt.Dimension(800, 525));

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel3.setText("¡ Bienvenido Entrenador !");

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel5.setText("Seleccione uno de sus equipos registrados:");

        jScrollPane1.setViewportView(MisEquiposLista);

        MisEquiposSiguiente.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        MisEquiposSiguiente.setText("Siguiente");
        MisEquiposSiguiente.setPreferredSize(new java.awt.Dimension(100, 30));
        MisEquiposSiguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MisEquiposSiguienteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout MisEquiposLayout = new javax.swing.GroupLayout(MisEquipos);
        MisEquipos.setLayout(MisEquiposLayout);
        MisEquiposLayout.setHorizontalGroup(
            MisEquiposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MisEquiposLayout.createSequentialGroup()
                .addContainerGap(202, Short.MAX_VALUE)
                .addGroup(MisEquiposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel5)
                    .addComponent(jLabel3)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(MisEquiposSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(211, Short.MAX_VALUE))
        );
        MisEquiposLayout.setVerticalGroup(
            MisEquiposLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(MisEquiposLayout.createSequentialGroup()
                .addContainerGap(56, Short.MAX_VALUE)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(50, 50, 50)
                .addComponent(jLabel5)
                .addGap(50, 50, 50)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(MisEquiposSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(57, Short.MAX_VALUE))
        );

        EstadisticasMisJugadores.setPreferredSize(new java.awt.Dimension(800, 525));

        TablaEstadisticas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "JGDR", "PTOS", "ASIS", "1 AC", "1 FA", "2 AC", "2 FA", "3 AC", "3 FA", "TH", "TR", "REB", "ROB", "FC", "FR", "BP"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane3.setViewportView(TablaEstadisticas);

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel8.setText("Estadísticas de los Jugadores del Equipo");

        EstadisticasSiguiente.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        EstadisticasSiguiente.setText("Siguiente");
        EstadisticasSiguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EstadisticasSiguienteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout EstadisticasMisJugadoresLayout = new javax.swing.GroupLayout(EstadisticasMisJugadores);
        EstadisticasMisJugadores.setLayout(EstadisticasMisJugadoresLayout);
        EstadisticasMisJugadoresLayout.setHorizontalGroup(
            EstadisticasMisJugadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EstadisticasMisJugadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(EstadisticasMisJugadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel8)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 780, Short.MAX_VALUE)
                    .addComponent(EstadisticasSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        EstadisticasMisJugadoresLayout.setVerticalGroup(
            EstadisticasMisJugadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EstadisticasMisJugadoresLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jLabel8)
                .addGap(50, 50, 50)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, Short.MAX_VALUE)
                .addComponent(EstadisticasSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(53, Short.MAX_VALUE))
        );

        EquiposRivales.setPreferredSize(new java.awt.Dimension(800, 525));

        jLabel6.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel6.setText("Seleccione el equivo rival contra quien va a jugar:");

        jScrollPane2.setViewportView(EquiposRivalesLista);

        EquiposRivalesSiguiente.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        EquiposRivalesSiguiente.setText("Siguiente");
        EquiposRivalesSiguiente.setPreferredSize(new java.awt.Dimension(100, 30));
        EquiposRivalesSiguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EquiposRivalesSiguienteActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout EquiposRivalesLayout = new javax.swing.GroupLayout(EquiposRivales);
        EquiposRivales.setLayout(EquiposRivalesLayout);
        EquiposRivalesLayout.setHorizontalGroup(
            EquiposRivalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EquiposRivalesLayout.createSequentialGroup()
                .addContainerGap(171, Short.MAX_VALUE)
                .addGroup(EquiposRivalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel6)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 254, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(EquiposRivalesSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(179, Short.MAX_VALUE))
        );
        EquiposRivalesLayout.setVerticalGroup(
            EquiposRivalesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(EquiposRivalesLayout.createSequentialGroup()
                .addContainerGap(135, Short.MAX_VALUE)
                .addComponent(jLabel6)
                .addGap(50, 50, 50)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(27, 27, 27)
                .addComponent(EquiposRivalesSiguiente, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(57, Short.MAX_VALUE))
        );

        PartidoEntre.setPreferredSize(new java.awt.Dimension(800, 525));

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel4.setText("Se va a disputar un partido entre:");

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel7.setText("VS");

        MiEquipo.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        MiEquipo.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        MiEquipo.setText("Madrid");
        MiEquipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MiEquipoActionPerformed(evt);
            }
        });

        EquipoRival.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        EquipoRival.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        EquipoRival.setText("Lakers");
        EquipoRival.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EquipoRivalActionPerformed(evt);
            }
        });

        IniciarPartido.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        IniciarPartido.setText("Iniciar partido");
        IniciarPartido.setToolTipText("");
        IniciarPartido.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IniciarPartidoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PartidoEntreLayout = new javax.swing.GroupLayout(PartidoEntre);
        PartidoEntre.setLayout(PartidoEntreLayout);
        PartidoEntreLayout.setHorizontalGroup(
            PartidoEntreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PartidoEntreLayout.createSequentialGroup()
                .addContainerGap(200, Short.MAX_VALUE)
                .addGroup(PartidoEntreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel4)
                    .addGroup(PartidoEntreLayout.createSequentialGroup()
                        .addComponent(EquipoRival, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(47, 47, 47)
                        .addComponent(jLabel7)
                        .addGap(47, 47, 47)
                        .addComponent(MiEquipo, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(IniciarPartido, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 189, Short.MAX_VALUE))
        );
        PartidoEntreLayout.setVerticalGroup(
            PartidoEntreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PartidoEntreLayout.createSequentialGroup()
                .addContainerGap(111, Short.MAX_VALUE)
                .addComponent(jLabel4)
                .addGap(75, 75, 75)
                .addGroup(PartidoEntreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(MiEquipo, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(EquipoRival, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(75, 75, 75)
                .addComponent(IniciarPartido, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(151, Short.MAX_VALUE))
        );

        Cancha.setPreferredSize(new java.awt.Dimension(900, 495));

        Suplente2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N

        Suplente3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N

        CanchaDatos.setPreferredSize(new java.awt.Dimension(320, 495));

        HistorialPartido.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A", "A" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jScrollPane4.setViewportView(HistorialPartido);

        Finalizar.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        Finalizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/FINALIZAR.png"))); // NOI18N
        Finalizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                FinalizarActionPerformed(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel9.setText("MI EQUIPO");

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel10.setText("EQUIPO RIVAL");

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel11.setText("VS");

        MisPuntos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MisPuntosActionPerformed(evt);
            }
        });

        RivalUnPunto.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        RivalUnPunto.setText("1 P");
        RivalUnPunto.setPreferredSize(new java.awt.Dimension(90, 90));

        RivalDosPuntos.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        RivalDosPuntos.setText("2 P");
        RivalDosPuntos.setPreferredSize(new java.awt.Dimension(90, 90));

        RivalTresPuntos.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        RivalTresPuntos.setText("3 P");
        RivalTresPuntos.setPreferredSize(new java.awt.Dimension(90, 90));

        javax.swing.GroupLayout CanchaDatosLayout = new javax.swing.GroupLayout(CanchaDatos);
        CanchaDatos.setLayout(CanchaDatosLayout);
        CanchaDatosLayout.setHorizontalGroup(
            CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CanchaDatosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CanchaDatosLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(CanchaDatosLayout.createSequentialGroup()
                        .addComponent(RivalUnPunto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(RivalDosPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(RivalTresPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(CanchaDatosLayout.createSequentialGroup()
                        .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(CanchaDatosLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(CanchaDatosLayout.createSequentialGroup()
                            .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                                .addComponent(MisPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel9))
                            .addGap(39, 39, 39)
                            .addComponent(jLabel11)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                                .addComponent(jLabel10)
                                .addComponent(RivalPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addComponent(Finalizar, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()))
        );
        CanchaDatosLayout.setVerticalGroup(
            CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CanchaDatosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 203, Short.MAX_VALUE)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(RivalUnPunto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(RivalDosPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(RivalTresPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
            .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(CanchaDatosLayout.createSequentialGroup()
                    .addGap(166, 166, 166)
                    .addComponent(Finalizar, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel9)
                        .addComponent(jLabel10))
                    .addGap(3, 3, 3)
                    .addGroup(CanchaDatosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(RivalPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(MisPuntos, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel11))
                    .addContainerGap(151, Short.MAX_VALUE)))
        );

        Jugador1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N
        Jugador1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Jugador1ActionPerformed(evt);
            }
        });

        Jugador4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N

        Jugador2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N

        Jugador5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N

        Jugador3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/camiseta.png"))); // NOI18N
        Jugador3.setToolTipText("");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(Jugador2)
                        .addGap(18, 18, 18)
                        .addComponent(Jugador5)
                        .addGap(18, 18, 18)
                        .addComponent(Jugador3)
                        .addContainerGap(61, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(Jugador4)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(Jugador1)
                        .addGap(25, 25, 25))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(Jugador1))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(Jugador4)))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(Jugador2)
                        .addContainerGap(29, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Jugador3)
                            .addComponent(Jugador5))
                        .addGap(21, 21, 21))))
        );

        javax.swing.GroupLayout CanchaLayout = new javax.swing.GroupLayout(Cancha);
        Cancha.setLayout(CanchaLayout);
        CanchaLayout.setHorizontalGroup(
            CanchaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CanchaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CanchaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(Suplente2, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Suplente3, javax.swing.GroupLayout.Alignment.LEADING))
                .addGap(50, 50, 50)
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(47, 47, 47)
                .addComponent(CanchaDatos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(55, 55, 55))
        );
        CanchaLayout.setVerticalGroup(
            CanchaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CanchaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CanchaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(CanchaDatos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(CanchaLayout.createSequentialGroup()
                        .addComponent(Suplente2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Suplente3)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        AccionesJugador.setPreferredSize(new java.awt.Dimension(992, 150));

        P1A.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        P1A.setForeground(new java.awt.Color(0, 204, 0));
        P1A.setText("1P");
        P1A.setPreferredSize(new java.awt.Dimension(60, 130));
        P1A.setBounds(80, 10, 60, 130);
        AccionesJugador.add(P1A, javax.swing.JLayeredPane.DEFAULT_LAYER);

        P1F.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        P1F.setForeground(new java.awt.Color(255, 0, 0));
        P1F.setText("1P");
        P1F.setPreferredSize(new java.awt.Dimension(60, 130));
        P1F.setBounds(150, 10, 60, 130);
        AccionesJugador.add(P1F, javax.swing.JLayeredPane.DEFAULT_LAYER);

        P2A.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        P2A.setForeground(new java.awt.Color(0, 204, 0));
        P2A.setText("2P");
        P2A.setPreferredSize(new java.awt.Dimension(60, 130));
        P2A.setBounds(220, 10, 60, 130);
        AccionesJugador.add(P2A, javax.swing.JLayeredPane.DEFAULT_LAYER);

        RE.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        RE.setForeground(new java.awt.Color(0, 204, 0));
        RE.setText("RE");
        RE.setToolTipText("");
        RE.setPreferredSize(new java.awt.Dimension(60, 130));
        RE.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                REActionPerformed(evt);
            }
        });
        RE.setBounds(640, 10, 60, 130);
        AccionesJugador.add(RE, javax.swing.JLayeredPane.DEFAULT_LAYER);

        P3A.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        P3A.setForeground(new java.awt.Color(0, 204, 0));
        P3A.setText("3P");
        P3A.setPreferredSize(new java.awt.Dimension(60, 130));
        P3A.setBounds(360, 10, 60, 130);
        AccionesJugador.add(P3A, javax.swing.JLayeredPane.DEFAULT_LAYER);

        BP.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        BP.setForeground(new java.awt.Color(255, 0, 0));
        BP.setText("BP");
        BP.setPreferredSize(new java.awt.Dimension(60, 130));
        BP.setBounds(920, 10, 60, 130);
        AccionesJugador.add(BP, javax.swing.JLayeredPane.DEFAULT_LAYER);

        RO.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        RO.setForeground(new java.awt.Color(0, 204, 0));
        RO.setText("RO");
        RO.setPreferredSize(new java.awt.Dimension(60, 130));
        RO.setBounds(710, 10, 60, 130);
        AccionesJugador.add(RO, javax.swing.JLayeredPane.DEFAULT_LAYER);

        FH.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        FH.setForeground(new java.awt.Color(255, 0, 0));
        FH.setText("FH");
        FH.setPreferredSize(new java.awt.Dimension(60, 130));
        FH.setBounds(780, 10, 60, 130);
        AccionesJugador.add(FH, javax.swing.JLayeredPane.DEFAULT_LAYER);

        P3F.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        P3F.setForeground(new java.awt.Color(255, 0, 0));
        P3F.setText("3P");
        P3F.setPreferredSize(new java.awt.Dimension(60, 130));
        P3F.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                P3FActionPerformed(evt);
            }
        });
        P3F.setBounds(430, 10, 60, 130);
        AccionesJugador.add(P3F, javax.swing.JLayeredPane.DEFAULT_LAYER);

        TR.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        TR.setForeground(new java.awt.Color(255, 0, 0));
        TR.setText("TR");
        TR.setPreferredSize(new java.awt.Dimension(60, 130));
        TR.setBounds(570, 10, 60, 130);
        AccionesJugador.add(TR, javax.swing.JLayeredPane.DEFAULT_LAYER);

        P2F.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        P2F.setForeground(new java.awt.Color(255, 0, 0));
        P2F.setText("2P");
        P2F.setPreferredSize(new java.awt.Dimension(60, 130));
        P2F.setBounds(290, 10, 60, 130);
        AccionesJugador.add(P2F, javax.swing.JLayeredPane.DEFAULT_LAYER);

        TH.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        TH.setForeground(new java.awt.Color(0, 204, 0));
        TH.setText("TH");
        TH.setPreferredSize(new java.awt.Dimension(60, 130));
        TH.setBounds(500, 10, 60, 130);
        AccionesJugador.add(TH, javax.swing.JLayeredPane.DEFAULT_LAYER);

        AS.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        AS.setForeground(new java.awt.Color(51, 204, 0));
        AS.setText("AS");
        AS.setPreferredSize(new java.awt.Dimension(60, 130));
        AS.setBounds(10, 10, 60, 130);
        AccionesJugador.add(AS, javax.swing.JLayeredPane.DEFAULT_LAYER);

        FR.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        FR.setForeground(new java.awt.Color(0, 205, 0));
        FR.setText("FR");
        FR.setPreferredSize(new java.awt.Dimension(60, 130));
        FR.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                FRActionPerformed(evt);
            }
        });
        FR.setBounds(850, 10, 60, 130);
        AccionesJugador.add(FR, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource("/sgeb/fotos/PISTABASKET.png"))); // NOI18N
        jLabel12.setText("jLabel12");
        jLabel12.setBounds(0, 0, 640, 380);
        Campo.add(jLabel12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        PanelCabecera.setBackground(new java.awt.Color(82, 171, 229));
        PanelCabecera.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        PanelCabecera.setForeground(new java.awt.Color(0, 0, 204));
        PanelCabecera.setName("cabecera"); // NOI18N

        etiquetaTitulo.setFont(new java.awt.Font("Tahoma", 3, 48)); // NOI18N
        etiquetaTitulo.setForeground(new java.awt.Color(238, 238, 238));
        etiquetaTitulo.setText("SGEB");

        javax.swing.GroupLayout PanelCabeceraLayout = new javax.swing.GroupLayout(PanelCabecera);
        PanelCabecera.setLayout(PanelCabeceraLayout);
        PanelCabeceraLayout.setHorizontalGroup(
            PanelCabeceraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelCabeceraLayout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(etiquetaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 137, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
        );
        PanelCabeceraLayout.setVerticalGroup(
            PanelCabeceraLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelCabeceraLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(etiquetaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        PanelContenido.setBackground(new java.awt.Color(238, 238, 238));
        PanelContenido.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 0));
        PanelContenido.setAlignmentX(0.0F);
        PanelContenido.setAlignmentY(0.0F);
        PanelContenido.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        PanelContenido.setFocusable(false);
        PanelContenido.setMinimumSize(new java.awt.Dimension(580, 525));
        PanelContenido.setOpaque(false);
        PanelContenido.setRequestFocusEnabled(false);
        PanelContenido.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentResized(java.awt.event.ComponentEvent evt) {
                PanelContenidoComponentResized(evt);
            }
        });
        PanelContenido.addHierarchyBoundsListener(new java.awt.event.HierarchyBoundsListener() {
            public void ancestorMoved(java.awt.event.HierarchyEvent evt) {
            }
            public void ancestorResized(java.awt.event.HierarchyEvent evt) {
                PanelContenidoAncestorResized(evt);
            }
        });
        PanelContenido.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                PanelContenidoPropertyChange(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel1.setText("¡ Bienvenido al SGEB !");

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setText("Inserte su DNI:");

        dniEntrenador.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        dniEntrenador.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        dniEntrenador.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dniEntrenadorActionPerformed(evt);
            }
        });

        IniciarSesion.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        IniciarSesion.setText("Iniciar sesión");
        IniciarSesion.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IniciarSesionActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout PanelContenidoLayout = new javax.swing.GroupLayout(PanelContenido);
        PanelContenido.setLayout(PanelContenidoLayout);
        PanelContenidoLayout.setHorizontalGroup(
            PanelContenidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelContenidoLayout.createSequentialGroup()
                .addContainerGap(377, Short.MAX_VALUE)
                .addGroup(PanelContenidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel1)
                    .addComponent(jLabel2)
                    .addComponent(dniEntrenador, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IniciarSesion))
                .addContainerGap(377, Short.MAX_VALUE))
        );
        PanelContenidoLayout.setVerticalGroup(
            PanelContenidoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(PanelContenidoLayout.createSequentialGroup()
                .addGap(62, 62, 62)
                .addComponent(jLabel1)
                .addGap(35, 35, 35)
                .addComponent(jLabel2)
                .addGap(18, 18, 18)
                .addComponent(dniEntrenador, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(IniciarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(355, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(PanelContenido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(PanelContenido, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void PanelContenidoComponentResized(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_PanelContenidoComponentResized

    }//GEN-LAST:event_PanelContenidoComponentResized

    private void PanelContenidoAncestorResized(java.awt.event.HierarchyEvent evt) {//GEN-FIRST:event_PanelContenidoAncestorResized

    }//GEN-LAST:event_PanelContenidoAncestorResized

    private void PanelContenidoPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_PanelContenidoPropertyChange
        // TODO add your handling code here:
    }//GEN-LAST:event_PanelContenidoPropertyChange

    private void dniEntrenadorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dniEntrenadorActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_dniEntrenadorActionPerformed

    private void MiEquipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MiEquipoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_MiEquipoActionPerformed

    private void EquipoRivalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EquipoRivalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_EquipoRivalActionPerformed

    private void EstadisticasSiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EstadisticasSiguienteActionPerformed
        // TODO add your handling code here:
        this.insertarPanel(this.EquiposRivales);
    }//GEN-LAST:event_EstadisticasSiguienteActionPerformed

    private void FRActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FRActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_FRActionPerformed

    private void P3FActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_P3FActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_P3FActionPerformed

    private void REActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_REActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_REActionPerformed

    private void IniciarSesionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IniciarSesionActionPerformed
	//this.panelActivo=this.PanelContenido;
        this.PanelContenido.setVisible(false);
        this.PanelCabecera.setVisible(false);
	this.insertarPanel(this.MisEquipos);
    }//GEN-LAST:event_IniciarSesionActionPerformed

    private void MisEquiposSiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MisEquiposSiguienteActionPerformed
	//this.panelActivo=this.PanelContenido;
	this.insertarPanel(this.EstadisticasMisJugadores);
       
    }//GEN-LAST:event_MisEquiposSiguienteActionPerformed

    private void IniciarPartidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IniciarPartidoActionPerformed
        // TODO add your handling code here:
        //this.insertarPanel(this.Cancha);
        //this.insertarCampo(Campo);
    }//GEN-LAST:event_IniciarPartidoActionPerformed

    private void EquiposRivalesSiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EquiposRivalesSiguienteActionPerformed
        // TODO add your handling code here:
        this.insertarPanel(this.PartidoEntre);
    }//GEN-LAST:event_EquiposRivalesSiguienteActionPerformed

    private void MisPuntosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MisPuntosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_MisPuntosActionPerformed

    private void FinalizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_FinalizarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_FinalizarActionPerformed

    private void Jugador1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Jugador1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Jugador1ActionPerformed

    /**
     * @param args the command line arguments
     */
        public void insertarPanel(javax.swing.JPanel panelNuevo) {
	if (this.panelActivo != null) {
            System.out.println("Entro en la parte nula de insertarPanel");
	    this.panelActivo.setVisible(false);
	}
	if (panelNuevo != null) {
            
	    panelNuevo.setVisible(true);
	    panelNuevo.setBounds(this.PanelContenido.getX(), this.PanelContenido.getY(), this.PanelContenido.getWidth(), this.PanelContenido.getHeight());
	    this.add(panelNuevo);
	    this.getContentPane().validate();
	    this.getContentPane().repaint();
	    this.panelActivo = panelNuevo;
            
	}
        
    }
        
        
         public void insertarCampo(javax.swing.JLayeredPane panelNuevo) {
	if (this.panelActivoOpciones != null) {
	    this.panelActivoOpciones.setVisible(false);
	}

	if (panelNuevo != null) {
	    panelNuevo.setVisible(true);
	    panelNuevo.setBounds(this.posPanelOpcionesX, this.posPanelOpcionesY, this.anchoPanelOpciones, this.altoPanelOpciones);
	    this.add(panelNuevo, 1);
	    this.getContentPane().validate();
	    this.getContentPane().repaint();
	    this.panelActivoOpciones = panelNuevo;
	}
    }
	
	
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VistaEntrenador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VistaEntrenador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VistaEntrenador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VistaEntrenador.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VistaEntrenador().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton AS;
    private javax.swing.JLayeredPane AccionesJugador;
    private javax.swing.JButton BP;
    private javax.swing.JLayeredPane Campo;
    private javax.swing.JPanel Cancha;
    private javax.swing.JPanel CanchaDatos;
    private javax.swing.JTextField EquipoRival;
    private javax.swing.JPanel EquiposRivales;
    private javax.swing.JList EquiposRivalesLista;
    private javax.swing.JButton EquiposRivalesSiguiente;
    private javax.swing.JPanel EstadisticasMisJugadores;
    private javax.swing.JButton EstadisticasSiguiente;
    private javax.swing.JButton FH;
    private javax.swing.JButton FR;
    private javax.swing.JButton Finalizar;
    private javax.swing.JList HistorialPartido;
    private javax.swing.JButton IniciarPartido;
    private javax.swing.JButton IniciarSesion;
    private javax.swing.JButton Jugador1;
    private javax.swing.JButton Jugador2;
    private javax.swing.JButton Jugador3;
    private javax.swing.JButton Jugador4;
    private javax.swing.JButton Jugador5;
    private javax.swing.JTextField MiEquipo;
    private javax.swing.JPanel MisEquipos;
    private javax.swing.JList MisEquiposLista;
    private javax.swing.JButton MisEquiposSiguiente;
    private javax.swing.JTextField MisPuntos;
    private javax.swing.JButton P1A;
    private javax.swing.JButton P1F;
    private javax.swing.JButton P2A;
    private javax.swing.JButton P2F;
    private javax.swing.JButton P3A;
    private javax.swing.JButton P3F;
    private javax.swing.JPanel PanelCabecera;
    private javax.swing.JPanel PanelContenido;
    private javax.swing.JPanel PartidoEntre;
    private javax.swing.JButton RE;
    private javax.swing.JButton RO;
    private javax.swing.JButton RivalDosPuntos;
    private javax.swing.JTextField RivalPuntos;
    private javax.swing.JButton RivalTresPuntos;
    private javax.swing.JButton RivalUnPunto;
    private javax.swing.JButton Suplente2;
    private javax.swing.JButton Suplente3;
    private javax.swing.JButton TH;
    private javax.swing.JButton TR;
    private javax.swing.JTable TablaEstadisticas;
    private javax.swing.JTextField dniEntrenador;
    private javax.swing.JLabel etiquetaTitulo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JSeparator jSeparator1;
    // End of variables declaration//GEN-END:variables
    
    private javax.swing.JPanel panelActivo = new javax.swing.JPanel();
    private javax.swing.JLayeredPane panelActivoOpciones = new javax.swing.JLayeredPane();
    private int posPanelOpcionesX = 0;
    private int posPanelOpcionesY = 0;
    private int altoPanelOpciones = 750;
    private int anchoPanelOpciones = 1000;
    String[] nombres = new String[4];
    String[] nombresRivales = new String[4];
    
}

